Utility.generateNextViewNames Method
Generates the next name and friendly name to be used for some item.
For example, if "adapter" prefix and a view search object is given, "adapter 1", "adapter1" may be returned.
Parameters
- prefix
-
Type: String
The prefix to search and generate for.
- ignoreCache
-
Type: Boolean - May be null
(Optional) True to ignore the cache - suitable for calling this function consecutively less than 50ms, preventGenerateNameCache() function will override this.
Return Value
Type: Object
An object that looks like:
friendlyName [type: String] - The full friendly name generated.
name [type: String] - The full name generated.